
public class Producer extends Thread {

	private Container container;
	
	public Producer(Container container) {

		setContainer(container);
		
	}

	public Container getContainer() {
		return container;
	}

	public void setContainer(Container container) {
		this.container = container;
	}

	@Override
	public void run() {
		container.setValue(Math.random()*100));
	}

}
